import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Test {
    public static void main(String[] args) {
        Collection collection=new ArrayList();
        collection.add(1230);
        collection.add("1230");
        collection.add("四十分");
        //System.out.println(collection);
        Iterator iterator=collection.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

        System.out.println("-----------------------------");
        ArrayList<Integer> arr=new ArrayList<>();
        arr.add(123);
        arr.add(2666);
        arr.add(5995);
//        System.out.println(arr);
        for (Integer o : arr) {
            System.out.println(o);
        }
    }
}
